package com.platform.constants;

/**
 * Description:
 *
 * @author zyk
 */
public class MySql8SettingField extends LinkSettingField {

    public static final SettingField DRIVER_CLASS = new SettingField("driverClass","连接驱动",true,null,"com.mysql.cj.jdbc.Driver",false);

    public static final SettingField URL = new SettingField("url","url",true,null,"jdbc:mysql://{host}:{port}/{dbName}{parameter}",false);

    public static final SettingField PAEAMETER = new SettingField("parameter","参数",false,null,"?rewriteBatchedStatements=true&serverTimezone=Asia/Shanghai",false);

    public static final SettingField PORT = new SettingField("port","端口号",true,"^([0-9]|[1-9]\\d|[1-9]\\d{2}|[1-9]\\d{3}|[1-5]\\d{4}|6[0-4]\\d{3}|65[0-4]\\d{2}|655[0-2]\\d|6553[0-5])$","3306",true);

    public static final SettingField DB_NAME = new SettingField("dbName","数据库名称",true,null,null,true);

    public static final SettingField USER_NAME = new SettingField("userName","用户名",true,null,null,true);

    public static final SettingField PASSWORD = new SettingField("password","密码",true,null,null,false);
}
